package com.xiaoshuidi.cloud.module.rooms.controller.admin.roomhouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author hans.zhang
 */
@Data
public class NoConcentratedEditRoomHouseDto {

    @Schema(description = "房屋户型-室")
    @NotNull(message = "卧室数不能为空")
    @Min(value = 1, message = "卧室数不能小于1")
    @Max(value = 5, message = "卧室数不能大于5")
    private Integer bedRoomNum;

    @Schema(description = "房屋户型-厅")
    @NotNull(message = "客厅数不能为空")
    @Min(value = 0, message = "客厅数不能小于0")
    @Max(value = 2, message = "客厅数不能大于2")
    private Integer livingRoomNum;

    @Schema(description = "房屋户型-卫")
    @NotNull(message = "卫生间数量不能为空")
    @Min(value = 0, message = "卫生间数量不能小于0")
    @Max(value = 3, message = "卫生间数量不能小于3")
    private Integer toiletNum;

    @Schema(description = "房屋户型-厨")
    @Min(value = 0, message = "厨房数量不能小于0")
    @Max(value = 1, message = "厨房数量不能大于1")
    private Integer kitchenNum;

    @Schema(description = "房屋户型-阳台")
    @Min(value = 0, message = "阳台数量不能小于0")
    @Max(value = 2, message = "阳台数量不能大于2")
    private Integer balcony;

    @Schema(description = "面积")
    @NotNull(message = "面积不能为空")
    @Min(value = 10, message = "面积不能小于10")
    @Max(value = 1000, message = "面积不能大于1000")
    private Double space;

    @Schema(description = "朝向")
    private String toward;

    @Schema(description = "可住人数")
    private Integer peopleNum;
    @Schema(description = "房源类型(用途): 办公室、住房")
    private String roomUsage;
}
